package com.luisliuyi.demo.webrtc;

import org.webrtc.VideoFrame;
import org.webrtc.VideoSink;

public class ProxyVideoSink implements VideoSink {

    private static final String TAG = "ProxyVideoSink";
    private VideoSink target;

    @Override
    public void onFrame(VideoFrame frame) {
        target.onFrame(frame);
    }

    synchronized public void setTarget(VideoSink target) {
        this.target = target;
    }
}
